Server on Linux OS does not boot.
# support-forum
i
Can someone help me? Using crashdetect and samp profiler, these lines are displayed in my log. In SO Windows the GM works perfectly, however, when transferring to SO Linux, the server does not open. [23:40:30] [debug] AMX backtrace: [23:40:30] [debug] #0 00006c3c in public CPSERVICE_Handler () in GM.amx [23:40:30] [debug] Long callback execution detected (hang or performance issue) [23:40:32] [debug] AMX backtrace: [23:40:32] [debug] #0 000070c0 in ?? (78, 1133835656, -1023557357, 1148912640) in GM.amx [23:40:32] [debug] #1 00006c14 in public CPSERVICE_Handler () in GM.amx [23:40:33] [debug] Long callback execution detected (hang or performance issue) [23:40:33] [debug] AMX backtrace: [23:40:33] [debug] #0 00007020 in ?? (81, 1135972427, 1127073756, 1148983424) in GM.amx [23:40:33] [debug] #1 00006c14 in public CPSERVICE_Handler () in GM.amx [23:40:33] [debug] Long callback execution detected (hang or performance issue) log in LINUX: [03:43:07] [debug] Server crashed while executing GM.amx [03:43:07] [debug] AMX backtrace: [03:43:07] [debug] #0 0000006e in ?? (114, 101, 103, 117, 101, 115, 58, 32, 49, 48, ... ) in GM.amx [03:43:07] [debug] #1 0000006e in public zcmd_OnGameModeInit () in GM.amx [03:43:07] [debug] #2 native CallLocalFunction () in samp03svr [03:43:07] [debug] #3 0000638c in ?? (58, 32, 49, 48, 0, 0, 0, 0, 0, 0, ... ) in GM.amx [03:43:07] [debug] #4 00000065 in public OnGameModeInit () in GM.amx
w
For a start, compile your gamemode with debug with verbosity level 3 enabled
-d3
- and then see if you can get some useful pointers as to where the issue might be in your gamemode. It will no longer show
??
but perhaps a line number for you to drill down on.
i
How can I be compiling with debug -d3-? Any compiler or plugin? Can you help me please?
w
-d3
is a flag you pass in when the compiler is invoked. If you use Pawno, it would be in the build options under
with these parameters
. If you use VSCode, it is in your tasks.json where you call the pawncc.exe.
i
I added -d3 in the options, would that be exactly it?
Copy code
[12:51:52] [debug] Long callback execution detected (hang or performance issue)
[12:51:52] [debug] AMX backtrace:
[12:51:52] [debug] #0 0000433c in DOF2_ParseFile (file[]=@002bbe08 "houses/house 1.ini", extraid=-1, bool:callback=false) at F:\SERVER\pawno\include\dof2.inc:1062
[12:51:52] [debug] #1 000029cc in DOF2_GetStringEx (file[]=@002bbe08 "houses/house 1.ini", key[]=@001ae854 "IdHouse", result[]=@002bbdac "", size=16, tag[]=@0027bedc "") at F:\SERVER\pawno\include\dof2.inc:698
[12:51:52] [debug] #2 00003764 in DOF2_GetInt (file[]=@002bbe08 "Casas/Casa 1.ini", key[]=@001ae854 "IdHouse", tag[]=@0027bedc "") at F:\SERVIDOR\pawno\include\dof2.inc:865
[12:51:52] [debug] #3 00044034 in LoadHouse (HouseID=1) at F:\SERVER\gamemodes\GM.pwn:4700
[12:51:52] [debug] #4 000130b4 in public zcmd_OnGameModeInit () at F:\SERVER\gamemodes\GM.pwn:1361
[12:51:52] [debug] #5 native CallLocalFunction () in samp-server.exe
[12:51:52] [debug] #6 00007f7c in public OnGameModeInit () at F:\SERVIDOR\pawno\include\zcmd.inc:68

The functions that were presented to me about slow loading of houses:

OnGameModeInit

new vHouse[18];
for(new i; i < MAX_HOUSES; i++)
{
     format(vHouse, sizeof(vHouse), past_House, i);
     if(DOF2_FileExists(vHouse))
     {
            LoadHouse(i);
     }  
}

Line 4700
stock LoadHouse(HouseID)
{
    new cHouse[20];
    format(cHouse, sizeof(cHouse), MAX_HOUSES, HouseID);
    Houses[HouseID][Existente] = true;

    Houses[HouseID][IdHouse] = DOF2_GetInt(cHouse,"IdHouse"); // Here
}
f
Long callback execution can be ignored at startup. That said, INI is just a bad format to store large amounts of data. Every call to a "get" function implies at least a partial, sequential re-read of the file which is very inefficient and therefore slow.
i
Searching a little more, now the log gave me a message of crashed, and listed two includes (ZCMD and FLOAT).
Copy code
[03:30:04] [debug] Server crashed while executing GM.amx
[03:30:04] [debug] AMX backtrace:
[03:30:04] [debug] #0 0000006e in ?? (114, 101, 103, 117, 101, 115, 58, 32, 49, 48, ... <19 more arguments>) at F:\SERVER\pawno\include\float.inc:112
[03:30:04] [debug] #1 0000006e in public zcmd_OnGameModeInit () at F:\SERVER\pawno\include\float.inc:112
[03:30:04] [debug] #2 native CallLocalFunction () in samp03svr
[03:30:04] [debug] #3 00007f7c in ?? (58, 32, 49, 48, 0, 0, 0, 0, 0, 0, ... <18 more arguments>) at F:\SERVER\pawno\include\zcmd.inc:68
[03:30:04] [debug] #4 00000065 in public OnGameModeInit () at F:\SERVER\pawno\include\float.inc:112
Can someone help me? Please.
w
What is on your
F:\SERVER\pawno\include\float.inc
around line 112? It could potentially help narrow down the issue
i
Hello, @worried-lighter-82731
Copy code
stock Float:operator*(Float:oper1, oper2)
    return floatmul(oper1, float(oper2)); // line 112
😟
2 Views